package Dao;

import entity.Ticket;
import entity.Train;
import entity.User;
import untils.Msg;

import java.util.ArrayList;

public interface BaseDao {
    Msg<User> login(String phone);

    Msg<User> register(User user);
    //修改个人信息
    Msg<User> updatePersonalData(Integer  id, String username,String password,String real_name,String phone,String email);

    int findUserByPhone(String phone);

    Msg<ArrayList<Train>> findAllTrainData();
}
